#ifndef PLOYGONWIDGET_H
#define PLOYGONWIDGET_H

#include <QWidget>
#include <QEvent>
#include <QShowEvent>
#include "global.h"

namespace Ui {
class PloygonWidget;
}

class PloygonWidget : public QWidget
{
    Q_OBJECT

public:
    explicit PloygonWidget(QWidget *parent = nullptr);
    ~PloygonWidget();

    PW::PLOYGONTYPE GetPloygonType();

protected:
    void init();

protected slots:
    void on_Button_Rectangle_clicked();
    void on_Button_Ellipose_clicked();
    void on_Button_Rhombus_clicked();

signals:
    void PloygonTypeChange();

private:
    Ui::PloygonWidget *ui;

    PW::PLOYGONTYPE pt;               // 多边形类型
};

#endif // PLOYGONWIDGET_H
